<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@	taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@	taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/tld/PagingA.tld" prefix="pagingTagA"%>

<section id="listLatestChapter" class="boxSubject corner rightShadow">
	<div class="boxTitle topCorner3">
		<h2>Danh sách tác giả viết truyện kiếm hiệp</h2>
	</div>
	<ul>
		<c:choose>
			<c:when test="${lstAuthor.size() > 0}">
				<c:if test="${pInfo.totalPage > 1}">
					<section class="pagination">
						<spring:url value="/truyen-kiem-hiep/danh-sach-tac-gia" var="link" />
							<pagingTagA:paging searchUrl="${link}" curPageParam="-trang-" 
									searchValueParam=".htm" pagingInf="${pInfo}"></pagingTagA:paging>
					</section>
				</c:if>
				<c:forEach items="${lstAuthor}" var="item">
					<li><a class="textOverflow corner3" href="<spring:url value="/truyen-kiem-hiep/tac-gia-${fn:replace(item.alias,' ','-')}-TG${item.id}-trang-1.htm" />" title="${item.name}">Tác giả : ${item.name}</a></li>
				</c:forEach>
				<c:if test="${pInfo.totalPage > 1}">
					<section class="pagination">
						<spring:url value="/truyen-kiem-hiep/danh-sach-tac-gia" var="link" />
							<pagingTagA:paging searchUrl="${link}" curPageParam="-trang-" 
									searchValueParam=".htm" pagingInf="${pInfo}"></pagingTagA:paging>
					</section>
				</c:if>
			</c:when>
			<c:otherwise><li>Đang cập nhật truyện kiếm hiệp ...</li></c:otherwise>
		</c:choose>
	</ul>
</section>